From bffa67fd6c92ab4742bea64860c498e69e693bb7 Mon Sep 17 00:00:00 2001 From: "kfraser@localhost.localdomain" Date: Mon, 18 Dec 2006 14:38:38 +0000 Subject: [PATCH] [XEN] Only print progress dots when scrubbing actual memory. Signed-off-by: Jes Sorensen --- xen/common/page_alloc.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/xen/common/page_alloc.c b/xen/common/page_alloc.c index 89cc140cf1..4a7527859b 100644 --- a/xen/common/page_alloc.c +++ b/xen/common/page_alloc.c @@ -490,16 +490,16 @@ void scrub_heap_pages(void) for ( mfn = first_valid_mfn; mfn < max_page; mfn++ ) { - /* Every 100MB, print a progress dot. */ - if ( (mfn % ((100*1024*1024)/PAGE_SIZE)) == 0 ) - printk("."); - process_pending_timers(); /* Quick lock-free check. */ if ( allocated_in_map(mfn) ) continue; + /* Every 100MB, print a progress dot. */ + if ( (mfn % ((100*1024*1024)/PAGE_SIZE)) == 0 ) + printk("."); + spin_lock_irq(&heap_lock); /* Re-check page status with lock held. */ -- 2.30.2